import pytest
from selenium.webdriver.common.by import By
from selenium.webdriver import ActionChains,Keys
from selenium.webdriver.support.select import Select
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from YkLX.Yklx_1.Page import Page
from YkLX.Yklx_1.Tools import qudong
datas=qudong('data.yaml')
@pytest.fixture
def driver():
    driver=webdriver.Edge()
    driver.maximize_window()
    driver.get('https://www.jiuxian.com/')

    yield driver
    driver.quit()

@pytest.mark.parametrize('data',datas)
def test_jiuxian_a(driver,data):
    po=Page(driver)
    po.test_jiuxian(data.get('username'),data.get('password'))


